package com.wang.eurekaconsumer.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @FeignClient.name对应provider的spring.appliation.name
 * @RequestMapping要和想调用的服务一致，方法名随意，参数名要一致（猜测是用Rest方式调用）
 * @Author wly
 * @Date 2018/6/27 17:08
 */
@FeignClient(name="spring-cloud-provider",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {
    @RequestMapping("/a/b")
    public String hahaha(@RequestParam("name")String qqq);
}
